import Taro, { Component } from "@tarojs/taro";
import { View, Image } from "@tarojs/components";

import './index.less'
import './cash_success.less'
import success_icon from '../../assets/img/icon_29.png'
import {getRuntime} from "../../utils/common";

class Success extends Component{
  constructor(props){
    super(props)
  }

  state = {
  }

  componentWillMount(): void {
    Taro.setNavigationBarTitle({ title:'提现成功' })
  }

  handelRouter(url: string = '/pages/index/index'): void {
    getRuntime().navigateTo(url)
  }

  render() {
    return(
     <View className='apply-success'>
       <View className='content'>
         <Image className='success-icon' src={success_icon} />
         <View className='title'>申请提现成功</View>
         <View className='desc'>我们会尽快为您提现，请耐心等待~</View>
         <View className='tel'>预计4小时内到账</View>
       </View>
       <View className='btn-group'>
         <View className='btn btn-active' style={{width: '100%'}}>确定</View>
       </View>
     </View>
    )
  }
}

export default Success
